package com.example.a14110100420.yuejian.WAdapter.club;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by wanger on 2017/11/10.
 */

public class ClubViewpagerAdatper extends FragmentPagerAdapter{
    private List<String> title;
    private List<Fragment> view;
    public ClubViewpagerAdatper(FragmentManager fm,List<String> title,List<Fragment> view) {
        super(fm);
        this.view = view;
        this.title = title;
    }

    @Override
    public Fragment getItem(int position) {
        return view.get(position);
    }

    @Override
    public int getCount() {
        return view.size();
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return title.get(position);
    }

}
